<?php

namespace Xin\ThinkPHP\Foundation\Auth;

trait AuthenticatesFields
{

    /**
     * Get the auth username to be used by the controller.
     *
     * @return string
     */
    protected function username()
    {
        return 'username';
    }

    /**
     * Get the auth password to be used by the controller.
     *
     * @return string
     */
    protected function password()
    {
        return 'password';
    }

    /**
     * Get the auth password to be used by the controller.
     *
     * @return string
     */
    protected function confirmPassword()
    {
        return 'confirm_password';
    }

    /**
     * Get the auth verify code to be used by the controller.
     *
     * @return string
     */
    protected function verify()
    {
        return 'verify';
    }

}
